package net.knightwatch.kwtools.customers;

import java.util.Date; 

public class Address {
	// Address Class Fields
	private long addressId;
	private long customerId;
	private String street;
	private String city;
	private String state;
	private String zipcode;
	private String country;
	private Date created;
	
	public Address(){
		//Address Class Constructor
		// Set the creation date. 
		created = new Date();
	}
	
	@Override
	public String toString() {
		// Return the string value of this address. This is mainly used in the array adapters.
		String adapterViewValue = street + " " + city + ", " + state + " " + zipcode;
		return adapterViewValue;
	}

	public long getAddressId() {
		return addressId;
	}

	public void setAddressId(long addressId) {
		this.addressId = addressId;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getZipcode() {
		return zipcode;
	}

	public void setZipcode(String zipcode) {
		this.zipcode = zipcode;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public long getCustomerId() {
		return customerId;
	}

	public void setCustomerId(long customerId) {
		this.customerId = customerId;
	}

	public String getStreet() {
		return street;
	}

	public void setStreet(String street) {
		this.street = street;
	}
}
